<swiper
  class="swiper"
  #swiper
  [loop]="true"
  [loopedSlides]="1"
  [slidesPerView]="1"
  [spaceBetween]="5"
  (slideNextTransitionEnd)="slideNextTransitionEnd($event)"
  (slidePrevTransitionEnd)="slidePrevTransitionEnd($event)"
  (sliderMove)="sliderMove($event)"
>
  <ng-template *ngFor="let item of sentences; let i = index" swiperSlide>
    <ion-grid class="text">
      <ion-row class="english">
        <ion-col
          ><div *ngIf="englishChecked">{{ item.englishText }}</div></ion-col
        >
      </ion-row>
      <ion-row class="chinese">
        <ion-col>
          <div *ngIf="chineseChecked">{{ item.chineseText }}</div></ion-col
        >
      </ion-row>
    </ion-grid>
  </ng-template>
</swiper>
